package com.tudouji.project.harvest.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.tudouji.framework.aspectj.lang.annotation.Excel;
import com.tudouji.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 质检结果对象 qaresult
 * 
 * @author tudouji
 * @date 2021-05-13
 */
public class Qaresult extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 货运单ID */
    @Excel(name = "货运单ID")
    private String foguid;

    /** 质检项id */
    @Excel(name = "质检项id")
    private String qaitemid;

    /** 质检项名称 */
    @Excel(name = "质检项名称")
    private String qaitemname;

    /** 质检结果	0~100% */
    @Excel(name = "质检结果	0~100%")
    private BigDecimal qaitemresult;

    /** 合格	1-是 2-否 */
    @Excel(name = "合格	1-是 2-否")
    private Integer qualified;

    /** 奖励金额 */
    @Excel(name = "奖励金额")
    private BigDecimal awardamount;

    /** 扣罚金额 */
    @Excel(name = "扣罚金额")
    private BigDecimal deductamount;

    /** $column.columnComment */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "扣罚金额", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdate;

    /** $column.columnComment */
    @Excel(name = "扣罚金额")
    private String operatorid;

    /** $column.columnComment */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "扣罚金额", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastupdate;
    private Integer type;

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setFoguid(String foguid) 
    {
        this.foguid = foguid;
    }

    public String getFoguid() 
    {
        return foguid;
    }
    public void setQaitemid(String qaitemid) 
    {
        this.qaitemid = qaitemid;
    }

    public String getQaitemid() 
    {
        return qaitemid;
    }
    public void setQaitemname(String qaitemname) 
    {
        this.qaitemname = qaitemname;
    }

    public String getQaitemname() 
    {
        return qaitemname;
    }
    public void setQaitemresult(BigDecimal qaitemresult) 
    {
        this.qaitemresult = qaitemresult;
    }

    public BigDecimal getQaitemresult() 
    {
        return qaitemresult;
    }
    public void setQualified(Integer qualified) 
    {
        this.qualified = qualified;
    }

    public Integer getQualified() 
    {
        return qualified;
    }
    public void setAwardamount(BigDecimal awardamount) 
    {
        this.awardamount = awardamount;
    }

    public BigDecimal getAwardamount() 
    {
        return awardamount;
    }
    public void setDeductamount(BigDecimal deductamount) 
    {
        this.deductamount = deductamount;
    }

    public BigDecimal getDeductamount() 
    {
        return deductamount;
    }
    public void setCreatedate(Date createdate) 
    {
        this.createdate = createdate;
    }

    public Date getCreatedate() 
    {
        return createdate;
    }
    public void setOperatorid(String operatorid) 
    {
        this.operatorid = operatorid;
    }

    public String getOperatorid() 
    {
        return operatorid;
    }
    public void setLastupdate(Date lastupdate) 
    {
        this.lastupdate = lastupdate;
    }

    public Date getLastupdate() 
    {
        return lastupdate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("foguid", getFoguid())
            .append("qaitemid", getQaitemid())
            .append("qaitemname", getQaitemname())
            .append("qaitemresult", getQaitemresult())
            .append("qualified", getQualified())
            .append("awardamount", getAwardamount())
            .append("deductamount", getDeductamount())
            .append("createdate", getCreatedate())
            .append("operatorid", getOperatorid())
            .append("lastupdate", getLastupdate())
            .toString();
    }
}
